<%--
  Author: lwx
  Date: 2021/05/08
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>学生信息修改</title>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
    <link rel="stylesheet" href="css/form.css">
    <%--<script>
        $(function() {
            $("#college").val($("#collegeId").val()); // 设置 value 为 $("#collegeId").val() 的项选中
        })
    </script>--%>
</head>
<body>
<a href="stu/list" class="previous">&laquo; 返回</a>

<form action="stu/modify" method="post">
    <div class="from">
        <div class="submit">
            <span class="form_title">学生信息详情</span>
            <div class="form_input">
                <span>id：</span>
                <input class="inputs" name="id" type="text" value="${studentInfo.id}" readonly/>
            </div>
            <div class="form_input">
                <span>姓名：</span>
                <input class="inputs" name="sName" type="text" value="${studentInfo.sName}" readonly/>
            </div>
            <div class="form_input">
                <span>班级:</span>
                <input class="inputs" name="sClass" type="text" value="${studentInfo.sClass}" readonly/>
            </div>
            <div class="form_input">
                <span>学号：</span>
                <input class="inputs" name="sNo" type="text" value="${studentInfo.sNo}" readonly/>
            </div>
            <div class="form_input">
                <span>系部：</span>
                <input class="inputs" id="college" type="text" value="${studentInfo.sCollege}" readonly/>
            </div>
            <div class="form_input">
                <span>性别：</span>
                <input ${studentInfo.sSex == '男'?'checked="true"':''} type="radio" name="sSex" value="男" disabled/>男&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input ${studentInfo.sSex == '男'?'':'checked="true"'} type="radio" name="sSex" value="女" disabled/>女
            </div>
        </div>
    </div>
</form>
</body>
</html>
